package com.ls.lserp.dbaccess.Dao;
import com.ls.lserp.common.persistence.annotation.MyBatisDao;
import com.ls.lserp.dbaccess.Entity.OgnizationPEntity;
import com.ls.lserp.common.persistence.CrudDao;

@MyBatisDao
public interface OgnizationPEntityMapper extends CrudDao<OgnizationPEntity> {
    int deleteByPrimaryKey(Long ognizationId);

    int insert(OgnizationPEntity record);

    int insertSelective(OgnizationPEntity record);

    OgnizationPEntity selectByPrimaryKey(Long ognizationId);

    int updateByPrimaryKeySelective(OgnizationPEntity record);

    int updateByPrimaryKeyWithBLOBs(OgnizationPEntity record);

    int updateByPrimaryKey(OgnizationPEntity record);



    /**删除所有数据
     *
     * @param OgnizationPEntity
     * @return
     */
    public int deleteAll(OgnizationPEntity ognizationPEntity);

    /**插入数据从List
     *
     * @param OgnizationPEntity
     * @return
     */
    public int insertByList(OgnizationPEntity ognizationPEntity);
}